package net.shopxx.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 实体类 - 大小
 */


@Entity
@Table(name = "product_size")
public class ProductSize extends BaseEntity {

	private static final long serialVersionUID = -6109590619136943215L;

	private Product product;// 名称
	private Properties properties;
	
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(nullable = false)
	public Product getProduct() {
		return product;
	}
	
	public void setProduct(Product product) {
		this.product = product;
	}

    @OneToOne(fetch = FetchType.LAZY)
    public Properties getProperties() {
        return properties;
    }
    public void setProperties(Properties properties) {
        this.properties = properties;
    }

}